import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import './route_handlers.dart';

class Routes {
  static String loginPage = "/login_page";
  static String homePage = "/home_page";
  static String newShopPage = "/new_shop_page";
  static String searchPage = "/search_page";
  static String productReviewPage = "/product_review_page";

  static void configureRoutes(FluroRouter router) {
    (BuildContext? context, Map<String, List<String>> params) {
      print("ROUTE WAS NOT FOUND !!!");
      return;
    };

    router.define(loginPage, handler: loginHandler);
    router.define(homePage, handler: homeHandler);
    router.define(newShopPage, handler: newShopPageHandler);
    router.define(searchPage, handler: searchPageHandler);
    router.define(productReviewPage, handler: productReviewPageHandler);
  }
}
